package cn.com.nes.site.service.system.user;

import cn.com.nes.site.entity.vo.user.PushUserInfoVO;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * 推送新增用户账号信息
 *
 * @Author: ShenWei
 * @Date: 2024/05/24/15:16
 */
@Service("pushInsertUserInfoService")
public class PushInsertUserInfoService extends PushUserInfoService {

    @Override
    public Integer getPushType() {
        return PushUserInfoVO.PUSH_TYPE_INSERT;
    }

    @Override
    public void pushUserInfo(Map<String, Boolean> checkResult) throws Exception {
        // 保存易修用户账号
        if (checkResult.get("pushEasyRepair")) {
            bindEasyRepairAccount();
        }

        // 保存长效管护用户账号
        if (checkResult.get("pushCallCenter")) {
            bindCallCenterAccount();
        }
    }
}
